package com.lzs.system.mapper;

import com.lzs.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author 刘中帅
 * @since 2020-11-24
 */
@Repository
public interface DeptMapper extends BaseMapper<Dept> {
    List<Long> selectWarehouseByDeptId(Long deptId);

    int deleteWarehouseByDeptId(Long deptId);

    int insertWarehouseByDeptId(@Param("warehouseIds") List<Long> warehouseIds,@Param("deptId") Long deptId);

    Dept findByDeptId(Long deptId);
}
